package com.freemalll.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.freemalll.merchant.domain.dto.BusinessLicenseDto;
import com.freemalll.merchant.domain.entity.MerLicense;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 服务层。
 *
 * @author songshixiong
 * @since 2025-05-14
 */
public interface  MerLicenseService extends IService<MerLicense> {

    /**
     * 根据商户ID获取证照信息
     * @param merId
     * @return
     */
    BusinessLicenseDto getBusinessLicenseById(@RequestParam(value = "merId") String merId);

    /**
     * 校验商户信息
     * @param licenseCode
     * @param licenseName
     * @param licenseShortName
     * @param b
     * @param merId
     */
    void checkMerchant(String licenseCode, String licenseName, String licenseShortName, boolean b, String merId);

    /**
     * 校验商户信息
     * @param licenseCode
     * @param licenseName
     * @param licenseShortName
     * @param b
     * @param merId
     */
    void checkLicenseCode(String licenseCode, String licenseName, String licenseShortName, boolean b, String merId);

    /**
     * 校验商户申请按钮是否显示
     * @param licenseCode
     * @param merId
     * @return
     */
    boolean checkMerchantApplyBtnFlag(String licenseCode, String merId);
}
